package submarines.logic;

import java.awt.Point;
import java.io.Serializable;

import submarines.logic.interfaces.IGrid;

public class Square extends Point implements Serializable
{
	private static final long serialVersionUID = 1831425632395597624L;

	private IGrid grid;
	private boolean hasBeenBombed = false;

	public Square(IGrid grid)
	{
		setGrid(grid);
	}

	/**
	 * @param grid
	 *            the grid to set
	 */
	private void setGrid(IGrid grid)
	{
		this.grid = grid;
	}

	/**
	 * @return the grid
	 */
	public IGrid getGrid()
	{
		return grid;
	}

	/**
	 * @param hasBeenBombed
	 *            the hasBeenBombed to set
	 */
	public void setHasBeenBombed(boolean hasBeenBombed)
	{
		this.hasBeenBombed = hasBeenBombed;
	}

	/**
	 * @return the hasBeenBombed
	 */
	public boolean hasBeenBombed()
	{
		return hasBeenBombed;
	}
}
